package Typage;

import java.util.Vector;

import Error.TypeError;
import Semantique.Visitor;

public class Fmethod extends Field {
	public Type meth_ty;

	public Ident meth_id;

	public VarList meth_args;

	public Expr meth_body;
	
	public int NbVariableDeclare;
	
	public Vector<String> typeList;
	
	public int GetArgCount()
	{
		return this.meth_args.GetCount();
	}

	public Fmethod(Type meth_ty_init, Ident meth_id_init,
			VarList meth_args_init, Expr meth_body_init) {
		this.meth_ty = meth_ty_init;
		this.meth_id = meth_id_init;
		this.meth_args = meth_args_init;
		this.meth_body = meth_body_init;
	}

	@Override
	public
	void accept(Visitor v) throws TypeError {
		v.visit(this);
	}
}